(function(f) {
	<!--通知消息开始-->
	 function addMsg($msg) {
            var $el = $('.nav-user'), $n = $('.count:first', $el), $v = parseInt($n.text());
            $('.count', $el).fadeOut().fadeIn().text($v + 1);
            $($msg).hide().prependTo($el.find('.list-group')).slideDown().css('display', 'block');
        }
      var $msg = '<a href="#" class="media list-group-item">' + '<span class="pull-left thumb-sm text-center">' + '<i class="fa fa-envelope-o fa-2x text-success"></i>' + '</span>' + '<span class="media-body block m-b-none">' + 'js您有一条消息<br>' + '<small class="text-muted">1分钟以前</small>' + '</span>' + '</a>';
        setTimeout(function() {
            addMsg($msg);
        }, 1500);
	<!--通知消息结束-->
})(jQuery);

function parentLayerClose() {
    var index=parent.layer.getFrameIndex(window.name);//获取layer的索引
    parent.layer.close(index);
}
 